package com.gsit.job;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import com.gsit.job.config.AppConfig;
import com.gsit.job.flows.ResumeWriteFlow;

public class MainResumeWriterApp {
	private static ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		MainResumeWriterApp app = new MainResumeWriterApp();
		//app.loadSearchCriteriaToDB();
		app.runJobService();
	
	
	}
	
	private void runJobService(){
		ResumeWriteFlow jobService = context.getBean(ResumeWriteFlow.class);
		 jobService.execute(null,false);
	}
	

}
